#ifndef QCOMMUNICATEDIALOG_H
#define QCOMMUNICATEDIALOG_H

#include <QDialog>

#include "../libs/core/qbasedialog.h"
#include "../libs/communicate/qcommunicate.h"

namespace Ui {
class QCommunicateDialog;
}

class QCommunicateDialog : public QBaseDialog
{
    Q_OBJECT
    
public:
    explicit QCommunicateDialog(const tagSerialConfig &config,QWidget *parent = 0);
    ~QCommunicateDialog();
    
    int get_ret();
    tagSerialConfig get_config();
private:
    Ui::QCommunicateDialog *ui;
protected:
    tagSerialConfig m_config;
    int             m_ret;
private slots:
    void on_okBtn_clicked();
    void on_cancelBtn_clicked();
};

#endif // QCOMMUNICATEDIALOG_H
